package asia.lics.system.domain;


import asia.lics.common.annotation.Excel;
import asia.lics.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * VIP套餐对象 sys_vip_package
 *
 * @author ss-tutor
 * @date 2024-12-01
 */
public class SysVipPackage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 金额
     */
    @Excel(name = "金额")
    private BigDecimal amount;

    /**
     * 有效期
     */
    @Excel(name = "有效期")
    private Long expir;

    /**
     * 有效期单位 0天 1月 2年
     */
    @Excel(name = "有效期单位 0天 1月 2年")
    private String expirUnit;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Long getExpir() {
        return expir;
    }

    public void setExpir(Long expir) {
        this.expir = expir;
    }

    public String getExpirUnit() {
        return expirUnit;
    }

    public void setExpirUnit(String expirUnit) {
        this.expirUnit = expirUnit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("amount", getAmount())
                .append("expir", getExpir())
                .append("expirUnit", getExpirUnit())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
}
